<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/header.jsp"%>
<%@taglib prefix="code" tagdir="/WEB-INF/tags"%>

<div style="margin:20px 0;"></div>
<div class="easyui-panel">
	<div style="padding:10px 60px 20px 60px">
	<form id="feedBackForm"  name="feedBackForm" method="post" action="<c:url value='/feedBack/saveFeedBackDetail.do'/>">
	<input type="hidden" id="feedback_uuid" name="feedback_uuid" value="${infEntity.feedback_uuid}"/>
	<input type="hidden" id="ins_uuid" name="ins_uuid" value="${infEntity.ins_uuid}"/>
	<input type="hidden" id="rec_id" name="rec_id" value="${infEntity.rec_id}"/>
			<table cellpadding="5" style="width:100%">
				<tr>
<%--
					<td>会员登录账号:</td>
					<td><input class="easyui-textbox" type="text"  name="login_id" data-options="required:true,validType:['length[0,120]']" value="${infEntity.login_id}"></input></td>
--%>
					<td>设备型号:</td>
					<td><input class="easyui-textbox" type="text"  name="system_device_model" data-options="required:true,validType:['length[0,120]']" value="${infEntity.system_device_model}"></input></td>
				</tr>
				<tr>
					<td>APP名称:</td>
					<td><input class="easyui-textbox" type="text"  name="app_name" data-options="required:true,validType:['length[0,120]']" value="${infEntity.app_name}"></input></td>
					<td>终端标识码:</td>
					<td><input class="easyui-textbox" type="text"  name="system_uuid" data-options="required:true,validType:['length[0,120]']" value="${infEntity.system_uuid}"></input></td>
				</tr>
				<tr>
					<td>客户端系统名称:</td>
					<td><input class="easyui-textbox" type="text"  name="system_name" data-options="required:true,validType:['length[0,120]']" value="${infEntity.system_name}"></input></td>
					<td>客户端手机系统版本:</td>
					<td><input class="easyui-textbox" type="text"  name="system_version"  data-options="validType:['length[0,120]']"  value="${infEntity.system_version}"></input></td>
				</tr>
				<tr>
					<td>标题:</td>
					<td><input class="easyui-textbox" type="text"  name="title"  data-options="required:true,validType:['length[0,120]']"  value="${infEntity.title}"></input></td>
					<td>APP类型:</td>
					<td><code:codeSelect id="app_type" name="app_type" showSelect="true" code_type="APP_TYPE" selectId="${infEntity.app_type}"></code:codeSelect></td>

				</tr>
				<tr>
					<td>内容:</td>
					<td><input class="easyui-textbox" name="content" data-options="multiline:true" value="${infEntity.content}"/></td>
				</tr>
			</table>
	<div style="text-align:center;padding:5px">
		<a href="javascript:void(0)" class="easyui-linkbutton btn detail-remove" iconCls="icon-save" onclick="submitForm('feedBackForm')">保存</a>
		<a href="javascript:void(0)" class="easyui-linkbutton btn" iconCls="icon-back" onclick="back()">返回</a>
	</div>
</form>
	</div>
</div>
<%--<div id="commonTree">
	<div id="ztreeObj" class="ztree"></div>
</div>--%>
<div id="menuTree">
	<div id="ztreeObj" class="ztree"></div>
</div>
<script>
    var ztreeObj;
    /*选择按钮*/
    $("#selelctBtn").click(function(){
        ztreeObj = showInsTree(selected, $("#ins_uuid").val());
    });

    /*确定按钮回调*/
    function selected(){
        var nodes = ztreeObj.getSelectedNodes();
        console.log(nodes);
        if(nodes && nodes.length > 0){
            $("#inst_name").textbox("setValue", nodes[0].NAME);
            $("#ins_uuid").val(nodes[0].ID);
        }
    }

</script>